package com.aqie.arithmetic.use;

import com.aqie.libs.StdIn;
import com.aqie.libs.StdOut;

import java.util.Stack;

/**
 * Stack 使用
 */
public class Reverse {
    public static void main(String[] args) {
        Stack<Integer> stack;
        stack = new Stack<>();
        while (!StdIn.isEmpty()) stack.push(StdIn.readInt());
        for (int i : stack) StdOut.println(i);
    }
}
